import axios from '@/libs/api.request'

/**
 * 列表
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const getList = (params) => {
  return axios.request({
    url: 'GameVersion/index',
    method: 'get',
    params: params
  })
}

export const add = (data) => {
  return axios.request({
    url: 'GameVersion/add',
    method: 'post',
    data
  })
}

export const changeStatus = (params) => {
  return axios.request({
    url: 'GameVersion/changeStatus',
    method: 'get',
    params: params
  })
}

export const publishServer = () => {
  return axios.request({
    url: 'GameVersion/publishServer',
    method: 'get'
  })
}
